package com.lenovo.nova.util.network;

import java.io.InputStream;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.List;
import java.util.Map;

import org.apache.http.HttpResponse;


public class NetworkHelper {
	

	public static final NetworkManager newNetworkManager(){
//		return new NetworkManagerApacha();
		return new NetworkManagerJavaImp();
	}
	
	public static interface NetworkManager {
		HttpResponse connect(int method, String url, Map<String, String> requestHead, Map<String, String> postBody) throws SocketTimeoutException, ConnectException;
	}
	
	
	public static interface Method {
		int POST = 0;
		int GET = 1;
	}

}